<h1>Comercials List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Dni</th>
      <th>Nombre</th>
      <th>Telefono</th>
      <th>Email</th>
      <th>Dnidirector</th>
      <th>Is director</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($comercials as $comercial): ?>
    <tr>
      <td><a href="<?php echo url_for('comercial/show?id='.$comercial->getId()) ?>"><?php echo $comercial->getId() ?></a></td>
      <td><?php echo $comercial->getDni() ?></td>
      <td><?php echo $comercial->getNombre() ?></td>
      <td><?php echo $comercial->getTelefono() ?></td>
      <td><?php echo $comercial->getEmail() ?></td>
      <td><?php echo $comercial->getDnidirector() ?></td>
      <td><?php echo $comercial->getIsDirector() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('comercial/new') ?>">New</a>
